<Canvas>
 <Rectange Id="Rectange0"   Width="100" Height="40" Color="#017bcd"  >
   <Text Id="Text0" Text="文件" Color="#ffffff" />
 </Rectange>
 <Text Id="Text0" Text="KaLuBin" Position="0,-100,0" Color="#ffffff" />
</Canvas>


<script type="text/javascript">

  This.MouseDown("Rectange0",function(rect){
      rect.SetColorRGBA(1.0,0.0,0.0,1.0)
  })
   
   This.MouseUp("Rectange0",function(rect){
   	 rect.SetColorRGBA(0.0,0.0,0.0,1.0)
   })

   This.MouseDown("Text0",function(label){
     label.SetColorRGBA(1.0,0.0,0.0,1.0)
   })
</script>